<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<s:set name="lang" var="lang" value="'application'" />
<s:if test="%{#session.WW_TRANS_I18N_LOCALE != null}">
	<s:set var="lang"
		value="'application_' + #session.WW_TRANS_I18N_LOCALE" />
</s:if>

<s:i18n name="application">
	<link href="../../css/style.css" rel="stylesheet" type="text/css" />
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td>
				<div class="blue-text16" style="margin: 0px 0px 0px 0px">
					<s:text name="buyMyOffer.header" />
				</div>
				<div class="header-separator-bg" style="margin: 10px 5px 17px 0px"></div>
				<div style="margin: 0px 0px 12px 0px">
					<!--------------------------------------------------------->
					<form name="ItemListForm" action="" method="post"></form>
					<table width="100%">
						<tbody>
							<tr>
								<td rowspan="3" align="center" valign="top" width="10%"
									class="grid-header-bg grid-header-text">
									Photo
								</td>
								<td align="center" valign="top" width="35%"
									class="grid-header-bg grid-header-text">
									<a href=""><s:text name="UserShop.para4" /> </a>
								</td>
								<td align="center" valign="top" width="10%"
									class="grid-header-bg grid-header-text">
									<s:text name="buyMyOffer.seller" />
								</td>

								<td align="center" valign="top" width="10%"
									class="grid-header-bg grid-header-text">
									Price
								</td>
								<td align="center" valign="top" width="15%"
									class="grid-header-bg grid-header-text">
									Quantity Requested
								</td>
								<td rowspan="3" align="center" valign="top" width="10%"
									class="grid-header-bg grid-header-text">
									<a href=""><s:text name="UserShop.para9" /> </a><a href=""></a>
								</td>
								<td rowspan="3" align="center" valign="top" width="5%"
									class="grid-header-bg grid-header-text">
									<s:text name="advertisingWatchingothers.action" />
								</td>
							</tr>
							<tr>
								<td align="center" valign="top"
									class="grid-header-bg grid-header-text">
									<s:text name="advertisingWatchingothers.subtitle" />
								</td>

								<td align="center" valign="top"
									class="grid-header-bg grid-header-text">
									<s:text name="advertisingWatchingothers.rating" />
								</td>
								<td align="center" valign="top"
									class="grid-header-bg grid-header-text">
									My offer
								</td>
								<td rowspan="2" align="center" valign="top"
									class="grid-header-bg grid-header-text">
									Quantity Available
								</td>
							</tr>
							<tr>
								<td align="center" valign="top"
									class="grid-header-bg grid-header-text">
									<s:text name="advertisingWatchingothers.itemnr" />
								</td>
								<td align="center" valign="top"
									class="grid-header-bg grid-header-text">
									<s:text name="buyPurchase.country" />
								</td>

								<td align="center" valign="top"
									class="grid-header-bg grid-header-text">
									<s:text name="allItemsForSale.shipping" />
								</td>
							</tr>


							<tr>
								<td colspan="7">
								<display:table name="itemOffersTemp" cellpadding="1"
									style="width: 100%;" requestURI="" id="row"
									class="common-text"
									pagesize="${listingOptions.listingsItemsPerPage}">
									<display:column class="grid-bg common-text">
										<tr>
											<td rowspan="3" align="center" valign="top" width="10%"
												class="grid-bg common-text">
												<s:if test="#attr.row.image != null">
													<img width="45" height="45"
														src="servlet/ImageServlet?dto=ItemsDTO&id=<s:property value="#attr.row.items.itemId"/>" />
												</s:if>
												<s:else>
													<img src="images/no_image.gif" alt="Photo">
												</s:else>
											</td>
											<td align="center" valign="top" class="grid-bg common-text" width="35%" >
												<a
													href="showItem.htm?cid=<s:property value="#attr.row.items.itemId"/>&p=createAuction"
													title="<s:property value="#attr.row.items.title"/>"> <s:property
														value="#attr.row.items.title" /> </a>
											</td>
											<td align="center" valign="top" class="grid-bg common-text" width="10%" >
												<s:property value="#attr.row.items.userId.userId" />
											</td>

											<td align="center" valign="top" class="grid-bg common-text" width="10%" >
												<s:property value="#attr.row.items.reserve" />
											</td>
											<td align="center" valign="top" class="grid-bg common-text" width="15%" >
												<s:property value="#attr.row.quantity" />
											</td>
											<td rowspan="3" align="center" valign="top" width="10%"
												class="grid-bg common-text">
												<s:if test="%{#attr.row.items.closed == true}">
													<span class="error-text"><b>Closed</b> </span>
													<s:date name="#attr.row.items.endTime"
														format="dd/MM/yyyy hh:mm:ss" />
												</s:if>
												<s:else>
													<s:date name="#attr.row.items.endTime" nice="true" />
												</s:else>
											</td>
											<td align="center" valign="top" class="grid-bg common-text" width="5%" rowspan="3"
												id="mddm" width="10%">
												<a href="#" class="common-link"
													onmouseover="mopen('<s:property value="#attr.row.items.itemId" />', this, 'common-link', 'right', <s:property value="#attr.row.items.itemId" />)"
													onmouseout="mclosetime()">Select</a>
												<div id="<s:property value="#attr.row.items.itemId" />"
													onmouseover="mcancelclosetime()" onmouseout="mclosetime()"
													style="visibility: hidden">
													<a
														href="askSeller.htm?cid=<s:property value="#attr.row.items.itemId" />">Contact
														Seller </a>
													<a href="viewSellersOtherItems.htm?userId=<s:property value="#attr.row.items.userId.id"/>&action=buyMyOffer">View
														sellers other items</a>
													<a
														href="addToFavoriteUser.htm?userId=<s:property value="#attr.row.items.userId.id" />&action=buyMyOffer">Add
														to favorite sellers</a>
													<a
														href="viewSimilarItem.htm?cid=<s:property value="#attr.row.items.itemId" />">View
														similar items</a>
													<a href="">Change Offer </a>
													<a
														href="deleteMyOffer.htm?cid=<s:property value="#attr.row.id"/>">Delete</a>
													<s:if
														test="#attr.row.items.itemNote.id != null && #attr.row.items.itemNote.id != 0">
														<a
															href="addNotes.htm?cid=<s:property value="#attr.row.items.itemNote.id" />&action=editnote&p=buyWatching.htm">Edit
															note</a>
													</s:if>
													<s:else>
														<a
															href="addNotes.htm?cid=<s:property value="#attr.row.items.itemId" />&action=addnote&p=buyWatching.htm">Add
															note</a>
													</s:else>
												</div>
											</td>
										</tr>
										<tr>
											<td align="center" valign="top" class="grid-bg common-text">
												<s:property value="#attr.row.items.subtitle" />
											</td>

											<td align="center" valign="top" class="grid-bg common-text">
												<s:property value="#attr.row.items.sellerRating.rating" />
											</td>
											<td align="center" valign="top" class="grid-bg common-text">
												<s:property value="#attr.row.price" />
											</td>
											<td rowspan="2" align="center" valign="top"
												class="grid-bg common-text">
												<s:set name="available"
													value="%{#attr.row.items.quantity - #attr.row.items.sold}"></s:set>
												<s:property value="#available" />
											</td>
										</tr>
										<tr>
											<td align="center" valign="top" class="grid-bg common-text">
												<s:property value="#attr.row.items.itemId" />

												<s:if test="#attr.row.items.HomePageFeatured == true">
													<img src="images/featured.gif" title="Featured" border="0">
												</s:if>
												<s:if
													test="#attr.row.items.bids.size >= listingOptions.coolItemBids">
													<!-- bids.size >= listingOptions.coolItemBids -->
													<img src="images/cool.gif" title="Cool" border="0">
												</s:if>
												<s:elseif
													test="#attr.row.items.bids.size >= listingOptions.hotItemBids">
													<!-- bids.size >= listingOptions.coolItemBids -->
													<img src="images/hot.gif" title="Hot" border="0">
												</s:elseif>
												<s:if test="#attr.row.items.buyPrice > 0.0">
													<img src="images/buyitnow.gif" title="Buy Now" border="0">
												</s:if>
											</td>
											<td align="center" valign="top" class="grid-bg common-text">
												<s:property value="#attr.row.items.userId.country.categoryName" />
											</td>

											<td align="center" valign="top" class="grid-bg common-text">
												<s:property value="#attr.row.items.locationCategoriesByCountry.categoryName" />
											</td>
										</tr>
										<tr>
											<td class="common-text" colspan="9" bgcolor="#ffffdd">
												<s:property value="#attr.row.itemNote.note" />
											</td>
										</tr>
									</display:column>
								</display:table>
								</td>
								</tr>
						</tbody>
					</table>
				</div>
			</td>
		</tr>
		<!--------------------------------------------------------->
	</table>
</s:i18n>